<?php
defined('BASEPATH') OR exit('No direct script access allowed');

class Admin_model extends CI_Model{
	
	//查看后台数据
	public function check($username){
//		$this->db->get();	
//$data = $this->db->get_where('admin', array('username'=>$username))->result_array();
		
$data = $this->db->get_where('admin',array('username'=>$username))->result_array();
		return $data;
	}
	
	//修改密码
	public function change($data,$uid){
		$this->db->update('admin', $data, array('uid'=>$uid));
	}
}
